<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JS导入</title>
</head>
<script>
    console.log("hello,world在head中去导入")
</script>
<script src="JS\myjs.js"></script>

<body>
    <h1>JS导入的方式</h1>
    <script>
        console.log('hello,world!在body内去导入')
    </script>

    
</body>
</html>